/*
 * Copyright 2010 Michael Nitsche
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package de.mnit.basis.fehler;

import de.mnit.basis.daten.struktur.S_Folge;
import de.mnit.basis.daten.struktur.liste.S_Liste;

/**
 * @author Michael Nitsche
 */
public abstract class A_Fehler extends Exception implements S_Fehler {

	private static final long serialVersionUID = 7371608900155161922L;
	private S_Liste<Object> anhang;


	public S_Folge<Object> gAnhang() {
		return this.anhang;
	}

	public void plusNotiz(Object... notiz) {
		this.anhang.plus("Weitere Notiz:");
		for(Object o : notiz) anhang.plus(o);
	}

	protected A_Fehler(String text,Throwable grund, S_Liste<Object> pars) {
		super(text, grund);
		this.anhang=pars;
	}

}
